<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box {
            position: absolute;
            top: 200px;
            left: 200px;
            width: 200px;
            height: 200px;
            background: #000;
            box-shadow:
                    10px 10px 0 #e5e12c,
                    20px 20px 0 #70c5e5,
                    30px 30px 0 #e24fe5;
            animation: mymove 3s infinite linear;
        }

        @keyframes mymove {
            0% {
                box-shadow:
                        10px 10px 0 #e5e12c,
                        20px 20px 0 #70c5e5,
                        30px 30px 0 #e24fe5;
            }

            35% {
                box-shadow:
                        30px 30px 0 #e24fe5,
                        10px 10px 0 #e5e12c,
                        20px 20px  0 #70c5e5;
            }

            70% {
                box-shadow:
                        20px 20px 0 #70c5e5,
                        30px 30px 0 #e24fe5,
                        10px 10px 0 #e5e12c;
            }
        }
    </style>
</head>
<body>

<div class="box">

</div>

</body>
</html>
